﻿/*CREATE TRIGGER [dbo].[Usuarios_DeletionTrigger] 
    ON [Usuarios] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Usuarios_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[UsuarioGuid] = [Usuarios_Tombstone].[UsuarioGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Usuarios_Tombstone] 
    ([UsuarioGuid], DeletionDate)
    SELECT [UsuarioGuid], GETUTCDATE()
    FROM deleted 
END*/